package sn.hn.demo.unit;

import sn.hn.demo.MainActivity;
import sn.hn.demo.image.ImageData;
import sn.hn.demo.sprite.MySprite;
import android.content.Context;
import android.graphics.Bitmap;

public class Mermaid {
	public Bitmap mMermaid;
	public MySprite mSprite;
	public int totalFrame = 10;
	public Mermaid(Context context) {
		mMermaid = ImageData.mMermaid;
		mSprite = new MySprite(MainActivity.SCREENWIDTH/16, MainActivity.SCREENHEIGHT/3);
		mSprite.init(mMermaid, mMermaid.getWidth()/totalFrame, mMermaid.getHeight(), totalFrame, totalFrame);
	}
}
